home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / midaswww-1.0 / SGMLFormattedTextP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-16  |  1.9 KB  |  68 lines

  1. /*==================================================================*/
  2. /*                                                                  */
  3. /* SGMLFormattedTextObject                                          */
  4. /*                                                                  */
  5. /* T.Johnson - (TonyJ@Slacvx.Slac.Stanford.Edu)           June.92   */
  6. /*                                                                  */
  7. /* Defines a text segment for the SGMLHyper widget                  */
  8. /*                                                                  */
  9. /*==================================================================*/
  10.  
  11. #ifndef SGMLFORMATTEDTEXTP_H
  12. #define SGMLFORMATTEDTEXTP_H
  13.  
  14. #include "SGMLFormattedText.h"
  15. #include "SGMLTextP.h"
  16.  
  17. typedef struct _SGMLFormattedTextClassPart{
  18.  
  19.     int ignore;   /* no new class elements */
  20.  
  21. } SGMLFormattedTextClassPart;
  22.  
  23. typedef struct _SGMLFormattedTextClassRec{
  24.  
  25.     ObjectClassPart            object_class;
  26.     SGMLTextClassPart          sgml_text_class;
  27.     SGMLFormattedTextClassPart sgml_formatted_text_class;
  28.  
  29. } SGMLFormattedTextClassRec, *SGMLFormattedTextObjectClass;
  30.  
  31. extern SGMLFormattedTextClassRec sGMLFormattedTextClassRec;
  32.  
  33. typedef struct _WordInfo {
  34.  
  35.     char      *word;
  36.     int       length;
  37.     Dimension size;
  38.  
  39. } WordInfo;
  40.  
  41. typedef struct _LineInfo {
  42.  
  43.     int       start;
  44.     int       stop;
  45.     int       nchars; 
  46.     Dimension size;
  47.  
  48. } LineInfo;
  49.  
  50. typedef struct _SGMLFormattedTextPart {
  51.  
  52.     WordInfo           *word_info;
  53.     LineInfo           *line_info;
  54.     int                 nwords;
  55.     int                 nlines;  
  56.     Dimension           left_indent;    /* left margin */
  57.     Dimension           right_indent;   /* right margin */   
  58.  
  59. } SGMLFormattedTextPart;
  60.  
  61. typedef struct _SGMLFormattedTextRec {
  62.     ObjectPart             object;
  63.     SGMLTextPart           sgml_text;
  64.     SGMLFormattedTextPart  sgml_formatted_text;
  65. } SGMLFormattedTextRec;
  66.  
  67. #endif SGMLFORMATTEDTEXTP_H
  68.